package com.itmk.system.user.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itmk.system.user.entity.SysUser;
import com.itmk.vo.req.UserReqVO;
import com.itmk.vo.resp.PageRespVO;

import java.util.List;

/**
 * 用户service
 */
public interface UserService extends IService<SysUser> {
    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    SysUser getUserByUserName(String username);

    SysUser findAllUserInfoByUsername(String username);


    /**
     * 获取用户基本信息
     * @param userId
     * @return
     */
    SysUser findSimpleUserInfoById(long userId);


    /**
     * 根据用户名查找用户信息
     * @param username
     * @return
     */
    SysUser findSimpleUserInfoByUsername(String username);

    IPage<SysUser> getUserWithRoleList(IPage page, UserReqVO userReqVO);
}
